@include('admin.public.head')
@include('admin.public.pop')

<div class="ibox-title">
    <h5>vip詳情</h5>
</div>

<div class="col-sm-12">
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <a href="/user_vip/{{$user_id}}" class="btn btn-primary" >返回vip列表</a>
            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th>課程名稱</th>
                        <th>老師</th>
                        <th>上課時間</th>
                        <th>可預約次數</th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach($user_vip_info as $v)
                    <tr>
                        <td>
                            {{$v->class_base_info->class_base->class_name??""}}
                        </td>
                        <td>
                            {{$v->class_base_info->teacher->teacher_name??""}}
                        </td>
                        <td>
                            {{$v->class_base_info->class_time??""}}
                        </td>
                        <td>
                            @if($v->is_restriction == 1)
                                {{$v->num}}
                            @else
                                无限制
                            @endif
                        </td>
                        </td>
                    </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>

        </div>
    </div>
</div>
